package com.woniu.crowd.client;

import com.woniu.crowd.client.param.*;
import com.woniu.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "selectQueryClient", name = "crowd")
public interface SelectQueryClient {
    /**
     * 后台分页查询甄选商品
     *
     * @return
     */
    @PostMapping("/manageListSelect")
    Result manageListSelect(@RequestBody ListSelectParam listSelectParam);

    /**
     * 搜索甄选商品
     *
     * @param
     * @return
     */
    @PostMapping("/searchSelect")
    public Result searchSelect(@RequestBody SearchSelectParam searchSelectParam);

    /**
     * 平台查询所有甄选申请
     */
    @PostMapping("/selAllApply")
    public Result selAllApply(@RequestBody ListApplyParam searchSelectParam);

    /**
     * 查询用户自己所有得甄选商品详情
     */
    @PostMapping("selSelectLog")
    public Result sellog(@RequestParam("userId") Integer userId);


/**
 * 平台查询甄选用户对商品的建议
 */
    @GetMapping("selOpinion")
    public Result selOpinion(@RequestParam("selectId")Integer selectId);

}
